package com.atguigu.gulimall.order.feign;

import com.atguigu.common.utils.R;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

@FeignClient("gulimall-product")    //标明要调用哪个远程服务
public interface ProductFeignService {
    /**
     * 根据 skuId 查询 spu 信息
     */
    @GetMapping("/product/spuinfo/skuId/{id}")    //标明调用远程服务中的哪个功能
    R getSpuInfoBySkuId(@PathVariable("id") Long skuId);
}
